package com.phunware.swipeToDismiss.pager;

import android.os.Parcelable;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.View;

public abstract class BasePagerAdapter extends PagerAdapter {

	@Override
	public abstract int getCount();

	@Override
	public void startUpdate(View paramView) {
	}

	@Override
	public abstract Object instantiateItem(View parent, int position);

	@Override
	public void destroyItem(View collection, int position, Object view) {
		((ViewPager) collection).removeView((View) view);
	}

	@Override
	public void finishUpdate(View paramView) {
	}

	@Override
	public boolean isViewFromObject(View view, Object object) {
		return view == ((View) object);
	}

	@Override
	public int getItemPosition(Object object) {
		return POSITION_NONE;
	}

	@Override
	public void restoreState(Parcelable bundle, ClassLoader arg1) {
	}

	@Override
	public Parcelable saveState() {
		return null;
	}

}
